package com.wangan.wanganpush.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.sql.Timestamp;

@Entity(name = "wangan_user_login")
public class UserLogin extends  BaseEntity{

    //B040002    帐号名，用户的登录名，会员名
    private String loginName;

    //B040003    用户内部ID
    private String userLoginId;

    //F040005    登录时间
    private String userLoginTime;

    //H010003    动作类型，字典码 上线=02，下线=03，未知=99
    private String actionType;

    //F020004    登录ip地址
    private String ipAddress;

    //F020006    端口号
    private String port;

    //H070003    登陆来源，字典，10=浏览器；11=手机浏览器；12=PC浏览器；20=客户端；21=手机客户端；22=PC客户端；30=突网工具；31=手机突网工具；32=PC突网工具；99=其他类型
    private String loginSource;

    //C040002    终端MAC地址
    private String terminalMacAddress;

    //B020005    登录时的手机号，手机登录时有效
    private String loginPhone;

    //C050001    移动终端IMEI，手机登录时有效
    private String mobileTerminalImel;

    //B020007    移动终端IMSI，手机登录时有效
    private String mobileTerminalImsl;

    //F030002    热点AP编号/基站号
    private String hardwareFeatureString;

    //F010001    经度，浮点数表示形式，东经为正数西经为负数。手机登录时有效, 采用坐标系:BD-09百度
    private String longitude;

    //F010002    纬度，浮点数表示形式，北纬为正数南纬为负数。手机登录时有效, 采用坐标系:BD-09百度
    private String latitude;

    //I020017    位置信息
    private String positionInformation;

    //F030002    热点AP编号/基站号
    private String baseStationId;

    //F030005    热点AP/基站地址
    private String baseStationAddress;

    //C020017    终端类型，字典，01：PC；02：手机；03：平板电脑；04：浏览器(WEB)；99：其它类型
    private String terminalType;

    //C020011    终端型号，如Iphone4、三星note5等
    private String terminalStyle;

    //C020009    终端操作系统类型，如android、ios、winphone等
    private String terminalOperationType;

    //C020005    终端操作系统版本，如android 5.0、ios 8等
    private String terminalOperationVersion;



    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserLoginId() {
        return userLoginId;
    }

    public void setUserLoginId(String userLoginId) {
        this.userLoginId = userLoginId;
    }

    public String getUserLoginTime() {
        return userLoginTime;
    }

    public void setUserLoginTime(String userLoginTime) {
        this.userLoginTime = userLoginTime;
    }

    public String getActionType() {
        return actionType;
    }

    public void setActionType(String actionType) {
        this.actionType = actionType;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getLoginSource() {
        return loginSource;
    }

    public void setLoginSource(String loginSource) {
        this.loginSource = loginSource;
    }

    public String getTerminalMacAddress() {
        return terminalMacAddress;
    }

    public void setTerminalMacAddress(String terminalMacAddress) {
        this.terminalMacAddress = terminalMacAddress;
    }

    public String getLoginPhone() {
        return loginPhone;
    }

    public void setLoginPhone(String loginPhone) {
        this.loginPhone = loginPhone;
    }

    public String getMobileTerminalImel() {
        return mobileTerminalImel;
    }

    public void setMobileTerminalImel(String mobileTerminalImel) {
        this.mobileTerminalImel = mobileTerminalImel;
    }

    public String getMobileTerminalImsl() {
        return mobileTerminalImsl;
    }

    public void setMobileTerminalImsl(String mobileTerminalImsl) {
        this.mobileTerminalImsl = mobileTerminalImsl;
    }

    public String getHardwareFeatureString() {
        return hardwareFeatureString;
    }

    public void setHardwareFeatureString(String hardwareFeatureString) {
        this.hardwareFeatureString = hardwareFeatureString;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getPositionInformation() {
        return positionInformation;
    }

    public void setPositionInformation(String positionInformation) {
        this.positionInformation = positionInformation;
    }

    public String getBaseStationId() {
        return baseStationId;
    }

    public void setBaseStationId(String baseStationId) {
        this.baseStationId = baseStationId;
    }

    public String getBaseStationAddress() {
        return baseStationAddress;
    }

    public void setBaseStationAddress(String baseStationAddress) {
        this.baseStationAddress = baseStationAddress;
    }

    public String getTerminalType() {
        return terminalType;
    }

    public void setTerminalType(String terminalType) {
        this.terminalType = terminalType;
    }

    public String getTerminalStyle() {
        return terminalStyle;
    }

    public void setTerminalStyle(String terminalStyle) {
        this.terminalStyle = terminalStyle;
    }

    public String getTerminalOperationType() {
        return terminalOperationType;
    }

    public void setTerminalOperationType(String terminalOperationType) {
        this.terminalOperationType = terminalOperationType;
    }

    public String getTerminalOperationVersion() {
        return terminalOperationVersion;
    }

    public void setTerminalOperationVersion(String terminalOperationVersion) {
        this.terminalOperationVersion = terminalOperationVersion;
    }


    @Override
    public String toString() {
        return "UserLogin{" +
                "loginName='" + loginName + '\'' +
                ", userLoginId='" + userLoginId + '\'' +
                ", userLoginTime='" + userLoginTime + '\'' +
                ", actionType='" + actionType + '\'' +
                ", ipAddress='" + ipAddress + '\'' +
                ", port='" + port + '\'' +
                ", loginSource='" + loginSource + '\'' +
                ", terminalMacAddress='" + terminalMacAddress + '\'' +
                ", loginPhone='" + loginPhone + '\'' +
                ", mobileTerminalImel='" + mobileTerminalImel + '\'' +
                ", mobileTerminalImsl='" + mobileTerminalImsl + '\'' +
                ", hardwareFeatureString='" + hardwareFeatureString + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", positionInformation='" + positionInformation + '\'' +
                ", baseStationId='" + baseStationId + '\'' +
                ", baseStationAddress='" + baseStationAddress + '\'' +
                ", terminalType='" + terminalType + '\'' +
                ", terminalStyle='" + terminalStyle + '\'' +
                ", terminalOperationType='" + terminalOperationType + '\'' +
                ", terminalOperationVersion='" + terminalOperationVersion + '\'' +
                '}';
    }
}
